<ion-header no-border>
    <ion-toolbar>
        <ion-title>工程登录单</ion-title>
        <ion-buttons slot="end">
            <ion-button>草稿箱</ion-button>
            <ion-button (click)="new()">新增</ion-button>
        </ion-buttons>
    </ion-toolbar>

    <div class="list_search_header w12">
        <input placeholder="搜索登录单号，使用单位，使用单位地址，电话等，可模糊搜索" [(ngModel)]="condition">
        <span (click)="search()">搜索</span>
    </div>
</ion-header>

<ion-content>
    <div class="qd_list">
        <ng-template *ngFor="let item of startOrders">
            <div class="qd_item">
                <div class="qd_header bor_bottom">
                    <div class="w12 qd_address">
                        <em class="mr5">{{ item['BZMC'] }}</em>{{ item['DLD03MC'] }} - {{ item['DLD07'] }}
                    </div>
                    <div class="w12 mt10">
                        <span class="w12"><i class="fa fa-map-marker mr5"></i>{{ item['DLD45'] }}</span>
                        <span class="w06 mt10 tl"><i class="fa fa-file-text mr5"></i>{{ item['DLD01'] }}</span>
                        <span class="w06 mt10 tr"><i class="fa fa-clock-o mr5"></i>{{ item['DLD16'] }}</span>
                    </div>
                </div>
                <div class="qd_body bor_bottom">
                    <div class="w12 mt10" [class]="{'Y':'font_green','N':'font_red'}[item['DLD31']]">
                        <h3 class="w06">{{ item['DLD31MC'] }}</h3>
                        <span class="w06 tr font_gray font_size_small">{{ item['DLD30'] }}</span>
                        <span class="w12 font_size_small">{{ item['DLD32'] }}</span>
                    </div>
                </div>
                <div class="qd_footer mt10">
                    <button (click)="tail(item)">跟进</button>
                    <button (click)="goContract()">合同</button>
                </div>
            </div>
        </ng-template>
    </div>

    <div class="tips_no_pro" *ngIf="startOrders.length <=  0">
        <div class="tips_no_main">
            <div class="w12 tc font_gray_ccc" style="font-size:50px;"><i class="fa fa-sticky-note-o"></i></div>
            <div class="w12 tc font_size_super mt20 font_gray_ccc">暂无记录</div>
        </div>
    </div>
</ion-content>
